#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void table(int x)
{
	int i = 1;
	for (i = 1; i <= x; i++)
	{
		int j;
		for (j = 1; j <= i; j++)
		{
			int n = i * j;
			printf("%d*%d=%2d ", i, j, n);
		}
		printf("\n");
	}

}


int main()
{
	int t = 0;
	scanf("%d", &t);
	table(t);
	
	return 0;
}